package com.pie4cloud.pie.job.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pie4cloud.pie.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 
 *
 * @author feilei
 * @date 2022-01-10 00:54:34
 */
@Data
@TableName("t_config_gather")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "")
@Entity
@Table(name="T_CONFIG_GATHER")
public class ConfigGather extends BaseEntity {

    /**
     * 收集编号
     */
	@Id
	@TableId(value = "gather_id", type = IdType.ASSIGN_ID)
	@GenericGenerator(name="snowflakeId", strategy="com.pie4cloud.pie.jpa.id.GenerateSnowflakeId")
	@GeneratedValue(generator="snowflakeId")
    @ApiModelProperty(value="收集编号")
    private Long gatherId;

	/**
	 * 收集名称
	 */
	@ApiModelProperty(value="收集名称")
	@Column(name = "gather_name",length = 200)
	private String gatherName;

	/**
	 * 扫描类型
	 */
	@ApiModelProperty(value="扫描类型")
	@Column(name = "gather_scan_type",length = 200)
	private Long gatherScanType;

    /**
     * 收集ftp
     */
    @ApiModelProperty(value="收集ftp")
	@Column(name = "gather_ftp_id",length = 200)
	private Long gatherFtpId;

    /**
     * 收集根地址
     */
    @ApiModelProperty(value="收集根地址")
	@Column(name = "gather_base_address",length = 1024)
	private String gatherBaseAddress;

    /**
     * 本地存储根地址
     */
    @ApiModelProperty(value="本地存储根地址")
	@Column(name = "local_base_address",length = 1024)
	private String localBaseAddress;

    /**
     * 收集参数
     */
    @ApiModelProperty(value="收集参数")
	@Column(name = "gather_params",length = 1024)
	private String gatherParams;

	/**
	 * 正则表达式
	 */
	@ApiModelProperty(value="正则表达式")
	@Column(name = "path_reg",length = 1024)
	private String pathReg;

}
